#ifndef DOORITEM_H
#define DOORITEM_H

#include <QGraphicsItem>

#include "Model/WallOpening.h"

namespace Editor {

class DoorItem : public QGraphicsItem 
{
public:
    DoorItem(Model::WallOpening* o);
    
    QRectF boundingRect() const;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
    
    Model::WallOpening* model();
    void setModel(Model::WallOpening* m);
    
    void setSelected(bool);
    bool selected();
    
private:
    Model::WallOpening* opening;
};

}

#endif // DOORITEM_H
